deny directive
Purpose
The deny directive affects which hosts can access a given directory
with a given method.
Scope
This directive is only available within Limit
sections.
Syntax
deny from host1 host2 ... hostn
host is one of the following:
- A domain name, like .ncsa.uiuc.edu (note the leading dot!), which host names must end in
to be allowed.
- A fully qualified host name.
- A full IP address of a host.
- The keyword all: This means that all hosts will be denied.
Default
No default applies.
Example
<Limit /u/Web>
order deny,allow
deny from all
allow from .ncsa.uiuc.edu
</Limit>
In the /u/Web directory, the server evaluates the deny directive
first. So, everyone is denied. It then evaluates the allow directive,
and decides to allow clients from .ncsa.uiuc.edu.
Return to access
configuration overview
Robert B. Denny <rdenny@netcom.com>